package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketAdmin;

import java.util.List;

/**
 * @Author 远志 zhangsong@cskaoyan.onaliyun.com
 * @Date 2024/5/4 9:26
 * @Version 1.0
 */
public interface MarketAdminService {
    MarketAdmin login(String username, String password);

    List<MarketAdmin> list(Integer limit, Integer page, String username, String sort, String order);

    void create(MarketAdmin marketAdmin);

    void update(MarketAdmin marketAdmin);

    boolean updatePassword(String newPassword, String oldPassword);


    void delete(MarketAdmin marketAdmin);
}
